<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Attrazioni</title>
<link rel="stylesheet"
	href="mobile/jquery-mobile-theme/themes/apptheme.min.css" />
<link rel="stylesheet"
	href="mobile/jquery-mobile-theme/themes/jquery.mobile.icons.min.css" />
<link rel="stylesheet"
	href="http://code.jquery.com/mobile/1.4.0/jquery.mobile.structure-1.4.0.min.css" />
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<script
	src="http://code.jquery.com/mobile/1.4.0/jquery.mobile-1.4.0.min.js"></script>
<style type="text/css">
#logo {
	background: url(images/logo.png) no-repeat;
}
</style>
<script type="text/javascript">
	$(document).on('pageinit', function() {
		
		$.mobile.ajaxEnabled = false;
	});

	
</script>
</head>
<body>

	<div data-role="page" id="pageone">
		<div data-role="header" style="overflow: hidden;">
			<h1>MApp</h1>
			<a href="mobileHome"
				class="ui-btn-left ui-btn-corner-all ui-btn ui-icon-home ui-btn-icon-notext ui-shadow"></a>

		</div>
		<!-- /header -->
		<div data-role="content">
			<ul data-role="listview">
				<s:iterator value="attractions">
					<s:url id="attractionurl" action="detailMobileAttraction"></s:url>

					<li><s:a href="%{attractionurl}?idAttraction=%{idattraction}">
							<img src="mobile/images/logo.png">
							<h2>
								<s:property value="name" />
							</h2>
							<p>
								<s:property value="description" />
							</p>
						</s:a></li>

				</s:iterator>
			</ul>
		</div>

		<div data-role="footer" data-position="fixed">
			<h1>MApp</h1>
		</div>
	</div>

</body>
</html>
